package com.itwlj.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    //商品id
    private Long id;

    //商品名称
    private String name;

    //子分类id
    private Long subCategoryId;

    //商品spu编码
    private String spuCode;

    //描述
    private String desc;

    //价格
    private BigDecimal price;

    //原价
    private BigDecimal oldPrice;

    //品牌
    private String brand;

    //图片
    private String picture;

    //状态
    private Integer status;

    //评分
    private Integer rating;

    //销量
    private Long salesCount;

    //评论数量
    private Long commentCount;

    //创建时间
    private LocalDateTime createTime;

    //更新时间
    private LocalDateTime updateTime;

    //创建人
    private Long createUser;

    //修改人
    private Long updateUser;
}
